<?php
if (!defined('BASEPATH'))
	exit('No direct script access allowed');

class Login extends CI_Controller {
	function __construct() {

		parent::__construct();
		$this -> load -> model('m_pmi');
	}

	public function index() {
		$this -> load -> view('login');
	}

	public function dologin() {
		$post_data = $this -> input -> post();
		$is_logedin=$this->m_pmi->login($post_data['username'],$post_data['password']);
		redirect("main");	
		
		 ///$this->load->library('Twitter');
		 //$msg= 'Just Integrated Twitter with CodeIgniter ';
		 
		 //echo $this->twitter->update($msg);
	}

}
